package com.lagou.utils;

/**
 * @author zhengzc
 * @version 1.0.0
 * @date 2020/2/24 17:18
 */
public class ClassUtil {
    /**
     * 获取classPath的Class
     * @param classPath Class的全路径
     * @return
     * @throws ClassNotFoundException
     */
    public static Class<?> getClassType(String classPath) {
        if(classPath!=null && classPath != "" ){
            Class<?> aClass = null;
            try {
                aClass = Class.forName(classPath);
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
            }
            return aClass;
        }
        return null;
    }
}
